package com.logictech.lims.entity;

import java.util.Date;
import org.jeecgframework.p3.core.utils.persistence.Entity;

/**
 * 描述：</b>Position:<br>
 * 
 * @author guoqi
 * @since：2017年03月21日 16时10分38秒 星期二
 * @version:1.0
 */
public class Position implements Entity<Integer> {
	private static final long serialVersionUID = 1L;

	/**
	 * 位置id
	 */
	private Integer id;
	/**
	 * 位置编号
	 */
	private String positionNo;
	/**
	 * 存放物类型
	 */
	private String storageType;
	/**
	 * 备注
	 */
	private String remark;
	/**
	 * 删除标记
	 */
	private String deleteFlag;
	/**
	 * 创建者Id
	 */
	private String createUser;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 更新者Id
	 */
	private String updateUser;
	/**
	 * 更新时间
	 */
	private Date updateTime;

	/**
	 * 存放物类型
	 */
	private String storageTypeLog;

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getPositionNo() {
		return this.positionNo;
	}

	public void setPositionNo(String positionNo) {
		this.positionNo = positionNo;
	}

	public String getStorageType() {
		return this.storageType;
	}

	public void setStorageType(String storageType) {
		this.storageType = storageType;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getDeleteFlag() {
		return this.deleteFlag;
	}

	public void setDeleteFlag(String deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	public String getCreateUser() {
		return this.createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getUpdateUser() {
		return this.updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getStorageTypeLog() {
		storageTypeLog = "1".equals(storageType) ? "试剂":"试液";
		return storageTypeLog;
	}

	public void setStorageTypeLog(String storageTypeLog) {
		this.storageTypeLog = storageTypeLog;
	}

	@Override
	public String toString() {
		return "[位置=" + positionNo + ", 存放物类型=" + getStorageTypeLog() + ", 备注=" + remark + "]";
	}
}
